package demo1;

/**
 * @Author liangzai
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        System.out.println(0%1);
    }

    public long minimumTime(int[] time, int totalTrips) {
        long count = 0;
        int t = 0;
        while(true){
            count++;
            for (int i = 0; i < time.length; i++) {
                if (count % time[i] == 0) {
                    t++;
                }
            }
            if (t >= totalTrips) {
                break;
            }
        }
        return count;
    }
}
